import Vue from 'vue'
import Vuex from 'vuex'

Vue.use(Vuex)

export default {
    state: {
        menuList:[],
        permList: [],

        hasRoutes:false,
        //默认首页
        editableTabsValue: 'Index',
        editableTabs: [{
            title: '首页',
            name: 'Index',
        }]
    },
    mutations: {
        setMenuList(state,menus){
            this.menuList = menus
            // console.log("menuList:" + this.menuList);

        },
        setPermList(state,perms){
            this.permList = perms

        }
    },

    actions: {
    }
}
